
#ifndef  __IPC_DEBUGLOG_H__
#define  __IPC_DEBUGLOG_H__

#ifdef __cplusplus
extern "C" {               
#endif

#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>


#define LOG_INFO      		"\n [INFO]***"
#define LOG_ERROR     		"\n [ERROR]***"
#define LOG_WARNING   		"\n [WARNING]***"

int IPC_Set_DebugLevel(int level);
int IPC_DEBUG(int level,  const char* format , ...);

#define DEV_PRINTF( level, fmt, args... )\
	do {\
		IPC_DEBUG( 3,"\033[34m[%s][%s()][Line %d]::", LOG_INFO, __FILE__,  __FUNCTION__,  __LINE__ );\
        IPC_DEBUG( 3, fmt, ##args);\ 
		IPC_DEBUG( 3, "\033[37m"); \
} while(0)

#ifdef __cplusplus
}
#endif


#endif

